﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace MRadio.Controls
{
    public class CtlFMButton : Button
    {
        #region Define  dependency property ImageSourceNormal
        /// <summary>
        /// 默认状态下图片
        /// </summary>
        public ImageSource ImageSourceNormal
        {
            get { return (ImageSource)GetValue(ImageSourceNormalProperty); }
            set { SetValue(ImageSourceNormalProperty, value); }
        }

        /// <summary>
        ///  默认状态的图片
        /// </summary>
        public static readonly DependencyProperty ImageSourceNormalProperty =
            DependencyProperty.Register("ImageSourceNormal", typeof(ImageSource), typeof(CtlFMButton), null);

        #endregion

        #region Define  dependency property ImageSourcePressed
        /// <summary>
        /// 按下的图片
        /// </summary>
        public ImageSource ImageSourcePressed
        {
            get { return (ImageSource)GetValue(ImageSourcePressedProperty); }
            set { SetValue(ImageSourcePressedProperty, value); }
        }

        /// <summary>
        /// 按下的图片
        /// </summary>
        public static readonly DependencyProperty ImageSourcePressedProperty =
            DependencyProperty.Register("ImageSourcePressed", typeof(ImageSource), typeof(CtlFMButton), null);
        #endregion
    }
}
